import ajax from './index'


//登录
export function loginBackground(data) {
  return ajax.post('/pms/admin/login', data)
}

export function userInfo() {
  return ajax.get('/pms/admin/info')
}

export function admin_update_password(data) {
  return ajax({
    url: "/pms/admin/updatePassword",
    method: "post",
    data: data
  });
}

export function userPermissions() {
  return ajax.get('/pms/admin/permissions')
}
